define(['app'], function(app) {
	'use strict';

	// 实例化方法
	var factory = function(Http) {
		
		return{
			//获取红包雨专场列表，session是必须的
			getlist:function(session,callback,calldone){
				Http.post({
					method:'shop.red.getlist',
					session:session
				},function(result){
					if(callback){
						callback(result.result)
					}
				}, function(e) {
					
				}, function() {
					if(calldone)
						calldone();
				});
			}
			
		};
	}

	factory.$inject = ['Http'];
	
	return app.registerService("Hongbaolist", factory);
});